﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace HisoftSmart.Client.AutomationClient.Helpers
{
    public static class GestureHelper
    {
        public Point SwipeStartPosition { get; set; }
        public Point SwipeEndPosition { get; set; }

        public GestureHelper()
        {
            // default is a horizontal left to right swipe at height 100
            SwipeStartPosition = new Point(100, 100);
            SwipeEndPosition = new Point(400, 100);
        }

        public static void DoGesture(IGesture gesture)
        {
            gesture.Perform(this);
            Pause(PauseDurationAfterPerformingGesture);
        }
    }
}
